package sevensoft.结构型模式.装饰模式;

import lombok.*;

import java.math.BigDecimal;

@Getter
@Setter
@AllArgsConstructor
public abstract class Food {
    private BigDecimal price;

    private String desc;

    public abstract BigDecimal cost();

    @Override
    public String toString() {
        return getDesc()+":"+cost()+"元";
    }
}
